From 9535b3e94a66cfc69f8aab195a9808bb8902efc7 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 25 Jan 2008 04:39:51 +0000 Subject: [PATCH] Sven Joachim (kill-buffer-if-not-modified): Don't pass t to buffer-modified-p. --- lisp/view.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/view.el b/lisp/view.el index c89fd692152..7a56f983218 100644 --- a/lisp/view.el +++ b/lisp/view.el @@ -244,7 +244,7 @@ This is local in each buffer, once it is used.") ;; types C-x C-q again to return to view mode. (defun kill-buffer-if-not-modified (buf) "Like `kill-buffer', but does nothing if the buffer is modified." - (let ((buf (or (bufferp buf) (get-buffer buf)))) + (let ((buf (get-buffer buf))) (and buf (not (buffer-modified-p buf)) (kill-buffer buf)))) -- 2.30.2